<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
</head>
<body>

<img id="zoomPic" onclick="ff()" src="">

<script>
        function ff(){
            alert("开始调用放大");
            var ka=document.getElementById("zoomPic");
            var base64Url = ka.getAttribute("src");
            //调用原生放大方法
            NativeInterface.showImage(base64Url);
        }
</script>
</body>
</html>